using System;
using System.Collections.Generic;
using PluginFrame;

namespace PcrDataStructure
{
	[Serializable]
	public class ExperimentSubModule : SubModule, IExperimentSubModule, ISubModule
	{
		private List<double> mBlockTemperature;

		private List<double> mTubeTemperature;

		public List<double> BlockTemperature
		{
			get
			{
				return mBlockTemperature;
			}
		}

		public List<double> TubeTemperature
		{
			get
			{
				return mTubeTemperature;
			}
		}

		public ExperimentSubModule()
		{
			mPcrCells = new List<IPcrCell>();
			mBlockTemperature = new List<double>();
			mTubeTemperature = new List<double>();
		}

		public void AddBlockTemperature(double blockTemperature)
		{
			mBlockTemperature.Add(blockTemperature);
		}

		public void AddTubeTemperature(double tubeTemperature)
		{
			mTubeTemperature.Add(tubeTemperature);
		}

		public double GetBlockTemperature(int index)
		{
			return mBlockTemperature[index];
		}

		public double GetTubeTemperature(int index)
		{
			return mTubeTemperature[index];
		}
	}
}
